<?php
class Block extends AppModel {
    var $name = 'Block';
    
    var $order= 'Block.order';
    
    /*var $belongsTo = array('Blockarea' => array(
            'className' => 'Blockarea',
            'foreignKey' => 'blockarea_name',
            'fields' => array('name'),
            
        ),
    );
    */
    
     var $validate = array(
        
        'name' => array(
            'notEmpty' => array(
                'rule' => array('notEmpty'),
                'required' => true,
                'message' => 'This field is required'
            ),
            
        ),
        'content' => array(
            'notEmpty' => array(
                'rule' => array('notEmpty'),
                'required' => true,
                'message' => 'This field is required'
            ),
            
        ),
              
    );
    
    
}    
?>